package com.tvpush.manage.core.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ouyangzn
 * @since 2019-03-22
 */
@Data
@Accessors(chain = true)
@TableName("tp_app")
public class App extends Model<App> {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    private Integer id;
    /**
     * 所属盟友
     */
    @TableField("ally_id")
    private Integer allyId;
    /**
     * 适用模板
     */
    @TableField("template_id")
    private Integer templateId;
    /**
     * 应用名称
     */
    @TableField("app_name")
    private String appName;
    /**
     * 应用状态
     */
    private Long status;
    /**
     * 应用类型
     */
    @TableField("app_type")
    private String appType;
    /**
     * 所属位置
     */
    private String location;
    /**
     * 排位
     */
    private Integer rank;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public static final String ID = "id";

    public static final String ALLY_ID = "ally_id";

    public static final String TEMPLATE_ID = "template_id";

    public static final String APP_NAME = "app_name";

    public static final String STATUS = "status";

    public static final String APP_TYPE = "app_type";

    public static final String LOCATION = "location";

    public static final String RANK = "rank";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
